import App from './App'
import settings from './common/settings/index.js'
// #ifndef VUE3
import Vue from 'vue'
import uView from '@/uni_modules/uview-ui/index.js'

Vue.use(uView)//注册
// uni.$u.config.unit = 'rpx'
// import rank from '@/common/utils/rank.js'
// Vue.prototype.$rank = rank;


Vue.prototype.$settings = settings


App.mpType = 'app'
const app = new Vue({
    ...App
})

require('@/config/request.js')(app);

app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
import uView from '@/uni_modules/uview-ui'
export function createApp() {
  const app = createSSRApp(App)
  app.use(uView)
  return {
    app
  }
}
// #endif